﻿
#include <stdio.h>
#include "log.h"
#include "textured_cube.frag.h"
#include "textured_cube.vert.h"
#include "vulkan_global.h"
#include "platform.h"
#include "cube.h"
int main()
{
    int i = 0;
    log_i("init_vulan_global %d",i);
    
    init_vulkan_global();//vulkan_global.h
    init_swapchain();//platform.h
    load_data();
  //  prepare_pipeline();
    flush_init_cmd();
    registerDrawFunc(onDraw);
    registerKeyFunc(onKeyPress);
    registerUpdateFunc(onUpdate);


     win_loop();
     printf("\n");
     log_i("exit 0 ");
     return 0;
}
